import gradio as gr


def greet(name, is_morning, temperature):
    salutation = "Good morning" if is_morning else "Good evening"
    greeting = f"{salutation} {name}. It is {temperature} degrees today"
    celsius = (temperature - 32) * 5 / 9
    res = (greeting, round(celsius, 2), )
    print(res)
    return res


demo = gr.Interface(
    fn=greet,
    inputs=['text', 'checkbox', gr.Slider(0, 100)],
    outputs=['text', 'number']
)
demo.launch(server_name='0.0.0.0', server_port=7776, share=True)

